package com.example.springbootfenye.config;


import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MybatisPlusConfig {
    @Bean
    public PerformanceInterceptor performanceInterceptor() { return new PerformanceInterceptor(); }
    @Bean
    public PaginationInterceptor paginationInterceptor() { return new PaginationInterceptor(); }
}
